package main

import "fmt"

type Call1 struct {
}

func (c Call1) start() {

	fmt.Println("手机启动")
}
func (c Call1) stop() {
	fmt.Println("手机关机")
}

type Camera1 struct {
}

func (c Camera1) start() {
	fmt.Println("相机开机")
}
func (c Camera1) stop() {
	fmt.Println("相机关机")
}

type USB1 interface {
	start()
	stop()
}

type computer1 struct {
}

func (c computer1) begin(usb2 USB1) {
	usb2.start()
	usb2.stop()
}
func main() {

	c := Call1{}
	cc := Camera1{}
	var u [4]USB1
	u[0] = c
	u[1] = cc

}
